package com.tchy.cloud.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "a_consultation_info", schema = "", catalog = "")
public class AConsultationInfoEntity {
    private Long consultationInfoId;
    private Long consultationId;
    private Integer type;
    private String name;
    private BigDecimal price;
    private Date createTime;
    private Integer isOpen;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "consultation_info_id")
    public Long getConsultationInfoId() {
        return consultationInfoId;
    }

    public void setConsultationInfoId(Long consultationInfoId) {
        this.consultationInfoId = consultationInfoId;
    }

    @Basic
    @Column(name = "consultation_id")
    public Long getConsultationId() {
        return consultationId;
    }

    public void setConsultationId(Long consultationId) {
        this.consultationId = consultationId;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "price")
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "is_open")
    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

}
